package com.ztf.reflection.study;

import java.lang.reflect.Array;

public class ArrayTester {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> calssType = Class.forName("java.lang.String");
        Object array = Array.newInstance(calssType,10);
        Array.set(array,5,"hello");
        String str = (String)Array.get(array,5);
        System.out.println(str);

//        int[] dims = new int[]{5,10,15};
//        System.out.println(Integer.TYPE);
//        System.out.println(Integer.class);
//        Object array = Array.newInstance(Integer.TYPE,dims);




    }
}
